home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 419 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: comma.rhein.de!serpens!not-for-mail
  2. From: mlelstv@serpens.rhein.de (Michael van Elst)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: AS225 daemon launch?
  5. Date: 7 Jan 1996 19:18:00 +0100
  6. Organization: dis-
  7. Message-ID: <4cp2op$d89@serpens.rhein.de>
  8. References: <19960106.7CB5338.12AAC@sdcc8.ucsd.edu>
  9. NNTP-Posting-Host: serpens.rhein.de
  10.  
  11. jfriesne@sdcc8.ucsd.edu (Jeremy Friesner) writes:
  12.  
  13. >How can a server program know, for sure, that it was launched by the AS225
  14. >inetd daemon, vs. being launched from a CLI?  The command-line-arguments
  15. >that inetd provides give a hint, but they could be faked, etc.
  16.  
  17. They could be faked. Yes. However, the daemon has to use the socket pointer
  18. and AFAIK this is validated by s_inherit. You could still run it from a shell
  19. and guess a valid socket pointer though. Since socket pointers are passed
  20. quickly the chance for an error is pretty low.
  21.  
  22. Regards,
  23. -- 
  24.                                 Michael van Elst
  25.  
  26. Internet: mlelstv@serpens.rhein.de
  27.                                 "A potential Snark may lurk in every tree."
  28.